package com.cloud.order.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "cloud-provider-payment", fallbackFactory = FeignHystrixService.class)
@Component
public interface FeignService {
    @GetMapping(value = "/getServerPort")
    String getPort();

    @GetMapping(value = "/payment/timeout")
    String timeOut();
}
